﻿using DevExpress.XtraBars;
using Marmat.Foundation;
using Marmat.Template.WinForm;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 测试项目
{
    public partial class MyMainForm : MainForm
    {
        public MyMainForm(IMeunManagement meunService) : base(meunService)
        {
            var item = new BarButtonItem();
            item.Caption = "重启";
            item.ItemClick += (d, g) =>
            {
                Application.Restart();
            };
            var item1 = new BarButtonItem();
            item1.Caption = "落花";
            item1.ItemClick += (d, g) =>
            {
                MessageBox.Show("落花无情，人有情");
            };
            //this.SettingRegisterItems(item, item1);
            this.ShowSkinButton = true;
            InitializeComponent();

        }
        //public void UpdateSoftware()
        //{
        //    var res = MessageBox.Show("确定要更新吗", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
        //    if (res == DialogResult.OK)
        //    {
        //        Application.Exit();
        //        Application.Restart();
        //    }
        //}
    }
}
